<template>
  <div>
    <button v-on:click="count++">点击了{{ count }}次</button>
    <p>mydata标签数据是：{{mydata}}</p>
    <button v-on:click="$emit('myevent')">发出自定义事件</button>
  </div>
</template>

<script>
  export default {
    data: function () {
      return{
        count: 0,
      }
    },
    props:['mydata']
  }
</script>
